package com.wc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 授权类
 */
public class Authorize {

    private Integer sqId;
    private String sqBmdm;
    private String sqXmdm;
    private Integer sqOwnerid;//被授权人ID

    @JsonFormat(pattern="yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
    private Date sqTime;

    public Integer getSqId() {
        return sqId;
    }

    public void setSqId(Integer sqId) {
        this.sqId = sqId;
    }

    public String getSqBmdm() {
        return sqBmdm;
    }

    public void setSqBmdm(String sqBmdm) {
        this.sqBmdm = sqBmdm;
    }

    public String getSqXmdm() {
        return sqXmdm;
    }

    public void setSqXmdm(String sqXmdm) {
        this.sqXmdm = sqXmdm;
    }

    public Integer getSqOwnerid() {
        return sqOwnerid;
    }

    public void setSqOwnerid(Integer sqOwnerid) {
        this.sqOwnerid = sqOwnerid;
    }

    public Date getSqTime() {
        return sqTime;
    }

    public void setSqTime(Date sqTime) {
        this.sqTime = sqTime;
    }

    @Override
    public String toString() {
        return "Authorize{" +
                "sqId=" + sqId +
                ", sqBmdm='" + sqBmdm + '\'' +
                ", sqXmdm='" + sqXmdm + '\'' +
                ", sqOwnerid=" + sqOwnerid +
                ", sqTime=" + sqTime +
                '}';
    }
}
